/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package util.file.apache_commons;

/*
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
*/
        
/**
 *
 * @author Rdelacruz
 */
public class StringUtil {
    
    
    /*
    //http://stackoverflow.com/questions/309424/read-convert-an-inputstream-to-a-string
    public static String inputStreamToString(InputStream inputStream) throws IOException {        
        StringWriter writer = new StringWriter();
        String encoding; 
        //http://stackoverflow.com/questions/6698354/where-to-get-utf-8-string-literal-in-java
        encoding = org.apache.commons.lang3.CharEncoding.UTF_8//
        encoding = StandardCharsets.UTF_8.toString();//java 7
        IOUtils.copy(inputStream, writer, encoding);
        return writer.toString();
    }
    */
    
}
